﻿using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace NET7.Domain.Dtos;

/// <summary>
/// 登录信息
/// </summary>
public class LoginDto
{
    /// <summary>
    /// 用户名
    /// </summary>
    [Required]
    [JsonPropertyName("username")]
    public string UserName { get; set; } 

    /// <summary>
    /// 密码
    /// </summary>
    [Required]
    [JsonPropertyName("password")]
    public string Password { get; set; }


    /// <summary>
    /// 测试 - 角色
    /// </summary>
    public string Role { get; set; }
    
    /// <summary>
    /// 测试 - 分组
    /// </summary>
    public string Group { get; set; }
}
